<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <script type="text/javascript" src="./script/rem.js"></script>
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="./css/font-awesome.css" />
    <link rel="stylesheet" type="text/css" href="./css/style.css" />
    <script type="text/javascript" src="./script/jquery.min.js"></script>
</head>
<body>

<header class="head" style="padding-top:0.4rem;">
    <div class="head-l"></div>
    <h3>支付成功</h3>
    <div class="head-r"></div>
</header>
<div class="head-d" style="padding-top:0.4rem;"></div>

<div class="pay-success">
  <img src="image/pay-success.png" alt="">
  <p>支付成功！</p>
</div>

<div class="pay-success-d">
    <span onclick="order()">查看订单</span>
    <span onclick="index()">返回首页</span>
</div>

</body>
<script type="text/javascript" src="./script/api.js"></script>
<script type="text/javascript" src="./script/index.js"></script>
<script type="text/javascript">

    function order(){
        api.openWin({
            name: 'order',
            url: './order.html',
            pageParam: {
                name: 'test'
            }
        });
    }

    function index(){
        var setSele = 'gotoIndex();';
        api.execScript({
            name: 'root',
            script: setSele,
        });
        api.closeToWin({
            name: 'root'
        });
    }

    function closeWin(){
        api.closeWin({
        });
    }
</script>
</html>